package com.ihemou.common.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author saperliu
 * @version 1.0.0
 * @date 2021-09-21 12:31
 * @Description
 */
@ApiModel(value = "FilterDTO", description = "公共查询字段")
public abstract class  FilterDTO implements Serializable {

    /**
     * 模糊关键字
     */
    @ApiModelProperty(value = "模糊关键字,多个以逗号相隔")
    private transient String searchValue;

    /**
     * 排序的字段
     */
    @ApiModelProperty(value = "排序的字段 如：name,age 多个逗号相隔")
    private String orderBy;

    /**
     * 排序的方向 asc/desc
     */
    @ApiModelProperty(value = "排序的方向：asc升序 desc 降序")
    private String direction;

    /**
     * 当前记录起始索引
     */
    @ApiModelProperty(value = "当前记录起始索引")
    private Integer pageNum;

    /**
     * 每页显示记录数
     */
    @ApiModelProperty(value = "每页显示记录数")
    private Integer pageSize;

    public String getSearchValue() {
        return searchValue;
    }

    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
